//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//

package com.baidu.trace;

import android.os.Binder;
import android.os.IBinder;
import android.os.IInterface;
import android.os.Parcel;
import android.os.RemoteException;
import java.util.HashMap;
import java.util.Map;

public interface IListener extends IInterface {
    void startTraceCallback(int var1) throws RemoteException;

    void stopTraceCallback(int var1) throws RemoteException;

    void startGatherCallback(int var1) throws RemoteException;

    void stopGatherCallback(int var1) throws RemoteException;

    Map gatherAttribute(long var1) throws RemoteException;

    void pushCallback(byte var1, String var2) throws RemoteException;

    void extendedOperationCallback(int var1, String var2) throws RemoteException;

    public abstract static class Stub extends Binder implements IListener {
        private static final String DESCRIPTOR = "com.baidu.trace.IListener";
        static final int TRANSACTION_startTraceCallback = 1;
        static final int TRANSACTION_stopTraceCallback = 2;
        static final int TRANSACTION_startGatherCallback = 3;
        static final int TRANSACTION_stopGatherCallback = 4;
        static final int TRANSACTION_gatherAttribute = 5;
        static final int TRANSACTION_pushCallback = 6;
        static final int TRANSACTION_extendedOperationCallback = 7;

        public Stub() {
            this.attachInterface(this, "com.baidu.trace.IListener");
        }

        public static IListener asInterface(IBinder var0) {
            IInterface var1;
            return (IListener)(var0 == null?null:((var1 = var0.queryLocalInterface("com.baidu.trace.IListener")) != null && var1 instanceof IListener?(IListener)var1:new IListener.Stub.Proxy(var0)));
        }

        public IBinder asBinder() {
            return this;
        }

        public boolean onTransact(int var1, Parcel var2, Parcel var3, int var4) throws RemoteException {
            int var5;
            String var6;
            switch(var1) {
                case 1:
                    var2.enforceInterface("com.baidu.trace.IListener");
                    var5 = var2.readInt();
                    this.startTraceCallback(var5);
                    var3.writeNoException();
                    return true;
                case 2:
                    var2.enforceInterface("com.baidu.trace.IListener");
                    var5 = var2.readInt();
                    this.stopTraceCallback(var5);
                    var3.writeNoException();
                    return true;
                case 3:
                    var2.enforceInterface("com.baidu.trace.IListener");
                    var5 = var2.readInt();
                    this.startGatherCallback(var5);
                    var3.writeNoException();
                    return true;
                case 4:
                    var2.enforceInterface("com.baidu.trace.IListener");
                    var5 = var2.readInt();
                    this.stopGatherCallback(var5);
                    var3.writeNoException();
                    return true;
                case 5:
                    var2.enforceInterface("com.baidu.trace.IListener");
                    long var9 = var2.readLong();
                    Map var7 = this.gatherAttribute(var9);
                    var3.writeNoException();
                    var3.writeMap(var7);
                    return true;
                case 6:
                    var2.enforceInterface("com.baidu.trace.IListener");
                    byte var8 = var2.readByte();
                    var6 = var2.readString();
                    this.pushCallback(var8, var6);
                    var3.writeNoException();
                    return true;
                case 7:
                    var2.enforceInterface("com.baidu.trace.IListener");
                    var5 = var2.readInt();
                    var6 = var2.readString();
                    this.extendedOperationCallback(var5, var6);
                    var3.writeNoException();
                    return true;
                case 1598968902:
                    var3.writeString("com.baidu.trace.IListener");
                    return true;
                default:
                    return super.onTransact(var1, var2, var3, var4);
            }
        }

        static class Proxy implements IListener {
            private IBinder mRemote;

            Proxy(IBinder var1) {
                this.mRemote = var1;
            }

            public IBinder asBinder() {
                return this.mRemote;
            }

            public String getInterfaceDescriptor() {
                return "com.baidu.trace.IListener";
            }

            public void startTraceCallback(int var1) throws RemoteException {
                Parcel var2 = Parcel.obtain();
                Parcel var3 = Parcel.obtain();

                try {
                    var2.writeInterfaceToken("com.baidu.trace.IListener");
                    var2.writeInt(var1);
                    this.mRemote.transact(1, var2, var3, 0);
                    var3.readException();
                } finally {
                    var3.recycle();
                    var2.recycle();
                }

            }

            public void stopTraceCallback(int var1) throws RemoteException {
                Parcel var2 = Parcel.obtain();
                Parcel var3 = Parcel.obtain();

                try {
                    var2.writeInterfaceToken("com.baidu.trace.IListener");
                    var2.writeInt(var1);
                    this.mRemote.transact(2, var2, var3, 0);
                    var3.readException();
                } finally {
                    var3.recycle();
                    var2.recycle();
                }

            }

            public void startGatherCallback(int var1) throws RemoteException {
                Parcel var2 = Parcel.obtain();
                Parcel var3 = Parcel.obtain();

                try {
                    var2.writeInterfaceToken("com.baidu.trace.IListener");
                    var2.writeInt(var1);
                    this.mRemote.transact(3, var2, var3, 0);
                    var3.readException();
                } finally {
                    var3.recycle();
                    var2.recycle();
                }

            }

            public void stopGatherCallback(int var1) throws RemoteException {
                Parcel var2 = Parcel.obtain();
                Parcel var3 = Parcel.obtain();

                try {
                    var2.writeInterfaceToken("com.baidu.trace.IListener");
                    var2.writeInt(var1);
                    this.mRemote.transact(4, var2, var3, 0);
                    var3.readException();
                } finally {
                    var3.recycle();
                    var2.recycle();
                }

            }

            public Map gatherAttribute(long var1) throws RemoteException {
                Parcel var3 = Parcel.obtain();
                Parcel var4 = Parcel.obtain();

                HashMap var8;
                try {
                    var3.writeInterfaceToken("com.baidu.trace.IListener");
                    var3.writeLong(var1);
                    this.mRemote.transact(5, var3, var4, 0);
                    var4.readException();
                    ClassLoader var7 = this.getClass().getClassLoader();
                    var8 = var4.readHashMap(var7);
                } finally {
                    var4.recycle();
                    var3.recycle();
                }

                return var8;
            }

            public void pushCallback(byte var1, String var2) throws RemoteException {
                Parcel var3 = Parcel.obtain();
                Parcel var4 = Parcel.obtain();

                try {
                    var3.writeInterfaceToken("com.baidu.trace.IListener");
                    var3.writeByte(var1);
                    var3.writeString(var2);
                    this.mRemote.transact(6, var3, var4, 0);
                    var4.readException();
                } finally {
                    var4.recycle();
                    var3.recycle();
                }

            }

            public void extendedOperationCallback(int var1, String var2) throws RemoteException {
                Parcel var3 = Parcel.obtain();
                Parcel var4 = Parcel.obtain();

                try {
                    var3.writeInterfaceToken("com.baidu.trace.IListener");
                    var3.writeInt(var1);
                    var3.writeString(var2);
                    this.mRemote.transact(7, var3, var4, 0);
                    var4.readException();
                } finally {
                    var4.recycle();
                    var3.recycle();
                }

            }
        }
    }
}
